package com.seari.tunnel.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.seari.tunnel.entity.FeatureDevice;
import com.seari.tunnel.mapper.FeatureDeviceMapper;
import com.seari.tunnel.service.IEmergencyMaterialsService;

@Service(IEmergencyMaterialsService.SERVICE_NAME)
public class EmergencyMaterialsServiceImpl implements IEmergencyMaterialsService{
	@Autowired
	FeatureDeviceMapper featureDeviceMapper;

	@Override
	public List<FeatureDevice> getEmergencyMaterials() {
		
		return featureDeviceMapper.getEmergencyMaterials();
	}

	@Override
	public void addEmergencyMaterials(FeatureDevice featureDevice) {
		
		featureDeviceMapper.addEmergencyMaterials(featureDevice);
	}

	@Override
	public void updateEmergencyMaterials(FeatureDevice featureDevice) {
		
		featureDeviceMapper.updateEmergencyMaterials(featureDevice);
	}

	@Override
	public void deleteById(int id) {
		
		featureDeviceMapper.deleteById(id);
	}
	
}
